#!/bin/bash

copy(){
 sourcePath=$1
 targetPath=$2
 ts=$3
 if [ ! -x ${targetPath} ]; then
     mkdir ${targetPath}
 fi
 cd ${targetPath}
 mkdir ${ts}
 cp ${sourcePath}/* ${targetPath}/${ts}/
}
copy $1 $2 $3
exit 0
